package uni.call.app;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TableRow;

public class MoreActivity extends Activity
{
	public void onCreate(Bundle savedInstanceState) 
	{ 
		super.onCreate(savedInstanceState);
		setContentView(R.layout.more);
	        
		TableRow VisitRow = (TableRow)findViewById(R.id.VisitRow);
		VisitRow.setOnClickListener(new OnClickListener()    
		{
			@Override
			public void onClick(View v) 
			{
				Uri uri = Uri.parse( "http://www.unicall.co.nr" );
				startActivity( new Intent( Intent.ACTION_VIEW, uri ) );
			}
		});
	        
		TableRow ShareRow = (TableRow)findViewById(R.id.FacebookRow);
		ShareRow.setOnClickListener(new  OnClickListener()   
		{
			@Override
			public void onClick(View v)   
			{
				Uri uri = Uri.parse( "http://www.facebook.com/pages/UniCall/105033512921710" );
				startActivity( new Intent( Intent.ACTION_VIEW, uri ) ); 
			}
		});

		TableRow ContactRow = (TableRow)findViewById(R.id.ContactRow);  
		ContactRow.setOnClickListener(new  OnClickListener() 
		{
			@Override
			public void onClick(View v) 
			{
				Intent i = new Intent(getBaseContext(), ContactUsActivity.class);                      
				startActivity(i);
			}
		});
	        
		TableRow AboutRow = (TableRow)findViewById(R.id.AboutRow);
		AboutRow.setOnClickListener(new  OnClickListener()
		{
			@Override
			public void onClick(View v) 
			{
				Intent i = new Intent(getBaseContext(), AboutActivity.class);                      	
				startActivity(i);
			}
		});
	}
}
